package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.CartaPorteDAO;
import com.bit.cfdi.web.domain.CartaPorte;
@Service
public class CartaPorteService {

	@Autowired CartaPorteDAO cartaPorteDAO;
	
	public List<CartaPorte> getAll() throws DataAccessException {
		return cartaPorteDAO.getAll();
	}

	public void save(CartaPorte cartaPorte) throws DataAccessException {
		cartaPorteDAO.save(cartaPorte);		
	}

}
